package com.ddwl.schema.vo.base;


import com.ddwl.schema.vo.gate.wechat.WxGrantVo;
import com.ddwl.schema.vo.gate.wechat.WxMinAppCodeTmplVo;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author Fu Zhaohui
 */
@Setter
@Getter
public class WxRestVo {

    private String return_code;
    private String return_msg;
    private Long errcode;
    private String errmsg;

    private String refund_id;
    private String out_refund_no;
    private Integer refund_fee;
    private Integer settlement_refund_fee;
    private String refund_status;
    private String success_time;
    private String refund_recv_accout;
    private String refund_account;
    private String refund_request_source;

    private String result_code;//业务结果
    private String err_code;//错误代码
    private String err_code_des;//错误代码描述

    private String productid; // C扫B回调

    private String appid;//公众账号ID
    private String sub_appid;//公众账号ID
    private String mch_id;//商户号
    private String sub_mch_id;//商户号
    private String nonce_str;//随机字符串
    private String sign;//签名
    private String prepay_id;//预支付交易会话标识
    private String code_url;//二维码链接
    private String trade_type;//交易类型

    private String transaction_id;//微信支付订单号
    private Long total_fee;//订单总金额，单位为分
    private Long cash_fee;//订单现金支付金额
    private String out_trade_no;//商户订单号
    private String trade_state;
    private String trade_state_desc;
    private String time_end; // 订单生成时间

    private String ticket;
    private String access_token;// 令牌
    private int expires_in;// 有效期
    private String refresh_token;// 刷新有效期
    private String openid;// 微信ID
    private String unionid;// 微信唯一ID
    private String scope;// 用户授权的作用域

    private String msgId;
    private String short_url; // C扫B后生成的二维码短地址 weixin://wxpay/s/XXXXXX

    private String component_access_token;
    private String pre_auth_code; // 预授权码

    private String is_subscribe;
    private String bank_type;

    // 授权信息
    private WxGrantVo authorization_info;

    private String authorizer_access_token; // 授权方令牌
    private String authorizer_refresh_token; // 刷新令牌

    private List<WxMinAppCodeTmplVo> template_list;

    private Long msgid;

    public Long getMsgid(){
        return this.msgid;
    }

    public void setMsgid(Long msgid){
        this.msgid = msgid;
    }
}
